#!/usr/bin/env python
# -*- encoding: utf-8 -*-

from app.libs.error import APIException


class ClientTypeError(APIException):
    code = 400
    msg = 'client is invalid'
    error_code = 1006


class ParameterException(APIException):
    code = 400
    msg = 'invalid parameter'
    error_code = 1000


class NotFound(APIException):
    code = 404
    msg = 'Not Found'
    error_code = 1010


class AuthFailed(APIException):
    code = 401
    msg = 'authorization failed'
    error_code = 1011


class ServerError(APIException):
    code = 500
    msg = 'Server Error'
    error_code = 5000


class Forbidden(APIException):
    code = 403
    error_code = 1004
    msg = 'forbidden, not in scope'
